﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

// http://dotnetstories.wordpress.com/2011/07/17/an-introduction-to-mvvm-pattern-using-wpf/

namespace wUniAppPCL.MVVM
{
  public interface IPerson
  {
    string FirstName { get; set; }
    string LastName { get; set; }
  }

  public class Person : wObservableObject, IPerson
  {

    private int id;
    public int Id
    {
      get { return id; }
      set { SetProperty(ref id, value, "Id");  }
    }
    private string firstname;

    public string FirstName
    {
      get { return firstname; }
      set
      {
        SetProperty(ref firstname, value, "FirstName");
      }
    }

    private string lastname;

    public string LastName
    {
      get { return lastname; }
      set
      {
        SetProperty(ref lastname, value, "LastName");
      }
    }

    private int age;

    public int Age
    {
      get { return age; }
      set
      {
        SetProperty(ref age, value, "Age");
      }
    }

    private double height;

    public double Height
    {
      get { return height; }
      set
      {
        SetProperty(ref height, value, "Height");
      }
    }

    private double weight;

    public double Weight
    {
      get { return weight; }
      set
      {
        SetProperty(ref weight, value, "Weight");
      }
    }
  }

}
